import VueRouter from 'vue-router'

import HomeContainer from './compontents/tabbar/HomeContainer.vue'
import MemberContainer from './compontents/tabbar/MemberContainer.vue'
import ShopcarContainer from './compontents/tabbar/ShopcarContainer.vue'
import SearchContainer from './compontents/tabbar/SearchContainer.vue'
import NewsList from './compontents/news/NewsList.vue'

var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/shopcar', component: ShopcarContainer },
        { path: '/search', component: SearchContainer },
        { path: '/home/newslist', component: NewsList }
    ],
    linkActiveClass: 'mui-active'
});

// 把路由对象暴露出去
export default router